package com.sc.nft.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;


@Data
public class AddEquityShareRuleDTO {

    @ApiModelProperty("收益名称")
    @NotBlank(message = "收益名称不能为空")
    private String profitName;


    @ApiModelProperty("藏品Id")
    @NotNull(message = "藏品Id不能为空")
    private Long collectionId;

    @ApiModelProperty("分红比例")
    @Range(min = 0, max = 1,message = "分红比例只能在0-1之间")
    private BigDecimal shareRatio;



}
